package lab02.test07;

public class Person {
    //属性
    String name;
    int age;
    long idcard;

    //无参构造
    public Person() {

    }

    public Person(String name, int age, long idcard) {
        this.name = name;
        this.age = age;
        this.idcard = idcard;
    }

    //方法

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public long getIdcard() {
        return idcard;
    }

    public void setIdcard(long idcard) {
        this.idcard = idcard;
    }

    @Override
    public String toString() {
        return name + "\t" + age + "\t" + idcard;
    }
}
